From: Dan Winship Date: Tue, 19 Oct 2010 17:59:49 +0000 (-0400) Subject: st_theme_node_get_color: fix inheritance X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9630 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=33e955770c7194eb603c40b44d242225dcd2d302;p=gnome-shell.git st_theme_node_get_color: fix inheritance This wasn't actually recursing if you passed the "inherit" flag https://bugzilla.gnome.org/show_bug.cgi?id=632590 --- diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index b70912031..5561162e1 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -542,6 +542,9 @@ st_theme_node_get_color (StThemeNode *node, } } + if (inherit && node->parent_node) + return st_theme_node_get_color (node->parent_node, property_name, inherit, color); + return FALSE; }